package com.fira.edu.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fira.common.annotation.Excel;
import com.fira.common.core.domain.saas.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 学员课程交费结算对象 edu_student_settle
 *
 * @author wuzhenggui
 * @date 2021-10-11
 */
public class EduStudentSettle extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private String id;

    /**
     * 租户
     */
    @Excel(name = "租户")
    private String tenantId;

    /**
     * 所属学员课程
     */
    @Excel(name = "所属学员课程")
    private String studentCourseId;

    /**
     * 学员id
     */
    @Excel(name = "学员id")
    private String studentId;

    /**
     * 订单编号
     */
    @Excel(name = "订单编号")
    private String orderNo;

    /**
     * 实收金额
     */
    @Excel(name = "实收金额")
    private BigDecimal paidAmount;

    /**
     * 付款方式
     */
    @Excel(name = "付款方式")
    private String paidType;

    /**
     * 交费时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "交费时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paidTime;

    /**
     * 经办人
     */
    @Excel(name = "经办人")
    private String agentPerson;

    /**
     * 经办人Id
     */
    @Excel(name = "经办人Id")
    private String agentPersonId;

    /**
     * 业绩归属
     */
    @Excel(name = "业绩归属")
    private String belongTo;

    /**
     * 业绩归属id
     */
    @Excel(name = "业绩归属id")
    private String belongToId;

    /**
     * 数据状态(0:无效,1:有效)
     */
    @Excel(name = "数据状态(0:无效,1:有效)")
    private String status;

    /**
     * 对内备注
     */
    @Excel(name = "对内备注")
    private String innerDesc;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getStudentCourseId() {
        return studentCourseId;
    }

    public void setStudentCourseId(String studentCourseId) {
        this.studentCourseId = studentCourseId;
    }

    public BigDecimal getPaidAmount() {
        return paidAmount;
    }

    public void setPaidAmount(BigDecimal paidAmount) {
        this.paidAmount = paidAmount;
    }

    public String getPaidType() {
        return paidType;
    }

    public void setPaidType(String paidType) {
        this.paidType = paidType;
    }

    public Date getPaidTime() {
        return paidTime;
    }

    public void setPaidTime(Date paidTime) {
        this.paidTime = paidTime;
    }

    public String getAgentPerson() {
        return agentPerson;
    }

    public void setAgentPerson(String agentPerson) {
        this.agentPerson = agentPerson;
    }

    public String getAgentPersonId() {
        return agentPersonId;
    }

    public void setAgentPersonId(String agentPersonId) {
        this.agentPersonId = agentPersonId;
    }

    public String getBelongTo() {
        return belongTo;
    }

    public void setBelongTo(String belongTo) {
        this.belongTo = belongTo;
    }

    public String getBelongToId() {
        return belongToId;
    }

    public void setBelongToId(String belongToId) {
        this.belongToId = belongToId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getInnerDesc() {
        return innerDesc;
    }

    public void setInnerDesc(String innerDesc) {
        this.innerDesc = innerDesc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("tenantId", getTenantId()).append("studentId", getStudentId()).append("orderNo", getOrderNo()).append("studentCourseId", getStudentCourseId()).append("paidAmount", getPaidAmount()).append("paidType", getPaidType()).append("paidTime", getPaidTime()).append("agentPerson", getAgentPerson()).append("agentPersonId", getAgentPersonId()).append("belongTo", getBelongTo()).append("belongToId", getBelongToId()).append("remark", getRemark()).append("status", getStatus()).append("innerDesc", getInnerDesc()).append("createTime", getCreateTime()).append("updateTime", getUpdateTime()).toString();
    }
}
